<template>
  <div>
    <Chart :cdata="cdata" />
  </div>
</template>

<script>
import * as DataApi from "@/http/DataApi.js";
import Chart from './chart.vue';
export default {
  data () {
    return {
      cdata: []
    }
  },
  components: {
    Chart,
  },
    mounted () {
        DataApi.getRural().then((res) => {
            this.cdata=res.rows
        });
    },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
</style>
